package com.example.math_exam;

import java.io.Serializable;

public class ShopEntitiy implements Serializable {

    private String id;
    private int icon;
    private String name;
    private float price;
    private String describe;
    private int num;
    private boolean isDelete;

    public ShopEntitiy() {
    }

    public ShopEntitiy(String id, int icon, String name, float price) {
        this.id = id;
        this.icon = icon;
        this.name = name;
        this.price = price;
        this.describe = "草莓果冻睡眠唇膜";
        this.num = 1;
        this.isDelete = false;
    }

    public boolean isDelete() {
        return isDelete;
    }


    public void setDelete(boolean delete) {
        isDelete = delete;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        if( num < 1) this.num = 1;
        else this.num = num;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    @Override
    public String toString() {
        return "ShopEntitiy{" +
                "id='" + id + '\'' +
                ", icon=" + icon +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", describe='" + describe + '\'' +
                '}';
    }
}
